import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class DepartmentCreateDto {
  @ApiProperty({
    description: '部门名称',
  })
  @IsNotEmpty({ message: '部门名称不能为空' })
  name: string; // 修改为与实体类一致的字段名
}
